package com.yanqu.road.entity.activity.youxing;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_c_xing_you_team_action_log_data", desc = "行游山水-队伍日志")
public class CrossXingYouShanShuiTeamActionLogData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "活动ID")
    private int activityId;

    @FieldTypeAnnotation(update = true, desc = "分组id")
    private int groupId;

    @FieldTypeAnnotation(update = true, desc = "日志ID")
    private long id;

    @FieldTypeAnnotation(desc = "队伍ID")
    private int teamId;

    @FieldTypeAnnotation(desc = "日志类型")
    private int logType;

    @FieldTypeAnnotation(desc = "玩家")
    private long userId;

    @FieldTypeAnnotation(desc = "玩家2")
    private long userId2;

    @FieldTypeAnnotation(desc = "日志参数")
    private String param;

    @FieldTypeAnnotation(desc = "奖励")
    private String reward = "";

    @FieldTypeAnnotation(desc = "事件id")
    private int eventId;

    @FieldTypeAnnotation(desc = "日志时间")
    private long logTime;

    @FieldTypeAnnotation(desc = "是否漂泊状态")
    private int drift;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        if(this.id != id) {
            this.id = id;
            setUpdateOption();
        }
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        if(this.groupId != groupId) {
            this.groupId = groupId;
            setUpdateOption();
        }
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        if(this.teamId != teamId) {
            this.teamId = teamId;
            setUpdateOption();
        }
    }

    public int getLogType() {
        return logType;
    }

    public void setLogType(int logType) {
        if(this.logType != logType) {
            this.logType = logType;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId){
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getUserId2() {
        return userId2;
    }

    public void setUserId2(long userId2) {
        if(this.userId2 != userId2) {
            this.userId2 = userId2;
            setUpdateOption();
        }
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        if(!Objects.equals(this.param, param)) {
            this.param = param;
            setUpdateOption();
        }
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        if(!Objects.equals(this.reward, reward)) {
            this.reward = reward;
            setUpdateOption();
        }
    }

    public int getEventId() {
        return eventId;
    }

    public void setEventId(int eventId) {
        if(this.eventId != eventId) {
            this.eventId = eventId;
            setUpdateOption();
        }
    }

    public long getLogTime() {
        return logTime;
    }

    public void setLogTime(long logTime) {
        if(this.logTime != logTime) {
            this.logTime = logTime;
            setUpdateOption();
        }
    }

    public int getDrift() {
        return drift;
    }

    public void setDrift(int drift) {
        if(this.drift != drift) {
            this.drift = drift;
            setUpdateOption();
        }
    }
}
